package com.bsierp.business.pojo;

/**
 * OrderHistoryId entity. @author MyEclipse Persistence Tools
 */

public class OrderHistoryId implements java.io.Serializable {

    // Fields

    private Integer orderhistoryId;
    private Integer orderId;
    private Product product;
    private Integer orderAmount;
    private String orderBookdate;
    private String orderDeadline;
    private User user;
    private User user_1;
    private String orderRequest;
    private String orderRemarks;
    private Integer orderCustommade;
    private Double orderTotalprice;
    private OrderState orderState;
    private String orderProductimage;
    private Integer orderIscheckout;

    // Constructors

    /** default constructor */
    public OrderHistoryId() {
    }

    /** minimal constructor */
    public OrderHistoryId(Integer orderhistoryId, Integer orderId,
            Product product, Integer orderAmount, String orderBookdate,
            String orderDeadline, User user, User user_1, String orderRequest,
            Integer orderCustommade, Double orderTotalprice,
            OrderState orderState, String orderProductimage,
            Integer orderIscheckout) {
        this.orderhistoryId = orderhistoryId;
        this.orderId = orderId;
        this.product = product;
        this.orderAmount = orderAmount;
        this.orderBookdate = orderBookdate;
        this.orderDeadline = orderDeadline;
        this.user = user;
        this.user_1 = user_1;
        this.orderRequest = orderRequest;
        this.orderCustommade = orderCustommade;
        this.orderTotalprice = orderTotalprice;
        this.orderState = orderState;
        this.orderProductimage = orderProductimage;
        this.orderIscheckout = orderIscheckout;
    }

    /** full constructor */
    public OrderHistoryId(Integer orderhistoryId, Integer orderId,
            Product product, Integer orderAmount, String orderBookdate,
            String orderDeadline, User user, User user_1, String orderRequest,
            String orderRemarks, Integer orderCustommade,
            Double orderTotalprice, OrderState orderState,
            String orderProductimage, Integer orderIscheckout) {
        this.orderhistoryId = orderhistoryId;
        this.orderId = orderId;
        this.product = product;
        this.orderAmount = orderAmount;
        this.orderBookdate = orderBookdate;
        this.orderDeadline = orderDeadline;
        this.user = user;
        this.user_1 = user_1;
        this.orderRequest = orderRequest;
        this.orderRemarks = orderRemarks;
        this.orderCustommade = orderCustommade;
        this.orderTotalprice = orderTotalprice;
        this.orderState = orderState;
        this.orderProductimage = orderProductimage;
        this.orderIscheckout = orderIscheckout;
    }

    // Property accessors

    public Integer getOrderhistoryId() {
        return this.orderhistoryId;
    }

    public void setOrderhistoryId(Integer orderhistoryId) {
        this.orderhistoryId = orderhistoryId;
    }

    public Integer getOrderId() {
        return this.orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Product getProduct() {
        return this.product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Integer getOrderAmount() {
        return this.orderAmount;
    }

    public void setOrderAmount(Integer orderAmount) {
        this.orderAmount = orderAmount;
    }

    public String getOrderBookdate() {
        return this.orderBookdate;
    }

    public void setOrderBookdate(String orderBookdate) {
        this.orderBookdate = orderBookdate;
    }

    public String getOrderDeadline() {
        return this.orderDeadline;
    }

    public void setOrderDeadline(String orderDeadline) {
        this.orderDeadline = orderDeadline;
    }

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public User getUser_1() {
        return this.user_1;
    }

    public void setUser_1(User user_1) {
        this.user_1 = user_1;
    }

    public String getOrderRequest() {
        return this.orderRequest;
    }

    public void setOrderRequest(String orderRequest) {
        this.orderRequest = orderRequest;
    }

    public String getOrderRemarks() {
        return this.orderRemarks;
    }

    public void setOrderRemarks(String orderRemarks) {
        this.orderRemarks = orderRemarks;
    }

    public Integer getOrderCustommade() {
        return this.orderCustommade;
    }

    public void setOrderCustommade(Integer orderCustommade) {
        this.orderCustommade = orderCustommade;
    }

    public Double getOrderTotalprice() {
        return this.orderTotalprice;
    }

    public void setOrderTotalprice(Double orderTotalprice) {
        this.orderTotalprice = orderTotalprice;
    }

    public OrderState getOrderState() {
        return this.orderState;
    }

    public void setOrderState(OrderState orderState) {
        this.orderState = orderState;
    }

    public String getOrderProductimage() {
        return this.orderProductimage;
    }

    public void setOrderProductimage(String orderProductimage) {
        this.orderProductimage = orderProductimage;
    }

    public Integer getOrderIscheckout() {
        return this.orderIscheckout;
    }

    public void setOrderIscheckout(Integer orderIscheckout) {
        this.orderIscheckout = orderIscheckout;
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof OrderHistoryId))
            return false;
        OrderHistoryId castOther = (OrderHistoryId) other;

        return ((this.getOrderhistoryId() == castOther.getOrderhistoryId()) || (this
                .getOrderhistoryId() != null
                && castOther.getOrderhistoryId() != null && this
                .getOrderhistoryId().equals(castOther.getOrderhistoryId())))
                && ((this.getOrderId() == castOther.getOrderId()) || (this
                        .getOrderId() != null
                        && castOther.getOrderId() != null && this.getOrderId()
                        .equals(castOther.getOrderId())))
                && ((this.getProduct() == castOther.getProduct()) || (this
                        .getProduct() != null
                        && castOther.getProduct() != null && this.getProduct()
                        .equals(castOther.getProduct())))
                && ((this.getOrderAmount() == castOther.getOrderAmount()) || (this
                        .getOrderAmount() != null
                        && castOther.getOrderAmount() != null && this
                        .getOrderAmount().equals(castOther.getOrderAmount())))
                && ((this.getOrderBookdate() == castOther.getOrderBookdate()) || (this
                        .getOrderBookdate() != null
                        && castOther.getOrderBookdate() != null && this
                        .getOrderBookdate()
                        .equals(castOther.getOrderBookdate())))
                && ((this.getOrderDeadline() == castOther.getOrderDeadline()) || (this
                        .getOrderDeadline() != null
                        && castOther.getOrderDeadline() != null && this
                        .getOrderDeadline()
                        .equals(castOther.getOrderDeadline())))
                && ((this.getUser() == castOther.getUser()) || (this.getUser() != null
                        && castOther.getUser() != null && this.getUser()
                        .equals(castOther.getUser())))
                && ((this.getUser_1() == castOther.getUser_1()) || (this
                        .getUser_1() != null
                        && castOther.getUser_1() != null && this.getUser_1()
                        .equals(castOther.getUser_1())))
                && ((this.getOrderRequest() == castOther.getOrderRequest()) || (this
                        .getOrderRequest() != null
                        && castOther.getOrderRequest() != null && this
                        .getOrderRequest().equals(castOther.getOrderRequest())))
                && ((this.getOrderRemarks() == castOther.getOrderRemarks()) || (this
                        .getOrderRemarks() != null
                        && castOther.getOrderRemarks() != null && this
                        .getOrderRemarks().equals(castOther.getOrderRemarks())))
                && ((this.getOrderCustommade() == castOther
                        .getOrderCustommade()) || (this.getOrderCustommade() != null
                        && castOther.getOrderCustommade() != null && this
                        .getOrderCustommade().equals(
                                castOther.getOrderCustommade())))
                && ((this.getOrderTotalprice() == castOther
                        .getOrderTotalprice()) || (this.getOrderTotalprice() != null
                        && castOther.getOrderTotalprice() != null && this
                        .getOrderTotalprice().equals(
                                castOther.getOrderTotalprice())))
                && ((this.getOrderState() == castOther.getOrderState()) || (this
                        .getOrderState() != null
                        && castOther.getOrderState() != null && this
                        .getOrderState().equals(castOther.getOrderState())))
                && ((this.getOrderProductimage() == castOther
                        .getOrderProductimage()) || (this
                        .getOrderProductimage() != null
                        && castOther.getOrderProductimage() != null && this
                        .getOrderProductimage().equals(
                                castOther.getOrderProductimage())))
                && ((this.getOrderIscheckout() == castOther
                        .getOrderIscheckout()) || (this.getOrderIscheckout() != null
                        && castOther.getOrderIscheckout() != null && this
                        .getOrderIscheckout().equals(
                                castOther.getOrderIscheckout())));
    }

    public int hashCode() {
        int result = 17;

        result = 37
                * result
                + (getOrderhistoryId() == null ? 0 : this.getOrderhistoryId()
                        .hashCode());
        result = 37 * result
                + (getOrderId() == null ? 0 : this.getOrderId().hashCode());
        result = 37 * result
                + (getProduct() == null ? 0 : this.getProduct().hashCode());
        result = 37
                * result
                + (getOrderAmount() == null ? 0 : this.getOrderAmount()
                        .hashCode());
        result = 37
                * result
                + (getOrderBookdate() == null ? 0 : this.getOrderBookdate()
                        .hashCode());
        result = 37
                * result
                + (getOrderDeadline() == null ? 0 : this.getOrderDeadline()
                        .hashCode());
        result = 37 * result
                + (getUser() == null ? 0 : this.getUser().hashCode());
        result = 37 * result
                + (getUser_1() == null ? 0 : this.getUser_1().hashCode());
        result = 37
                * result
                + (getOrderRequest() == null ? 0 : this.getOrderRequest()
                        .hashCode());
        result = 37
                * result
                + (getOrderRemarks() == null ? 0 : this.getOrderRemarks()
                        .hashCode());
        result = 37
                * result
                + (getOrderCustommade() == null ? 0 : this.getOrderCustommade()
                        .hashCode());
        result = 37
                * result
                + (getOrderTotalprice() == null ? 0 : this.getOrderTotalprice()
                        .hashCode());
        result = 37
                * result
                + (getOrderState() == null ? 0 : this.getOrderState()
                        .hashCode());
        result = 37
                * result
                + (getOrderProductimage() == null ? 0 : this
                        .getOrderProductimage().hashCode());
        result = 37
                * result
                + (getOrderIscheckout() == null ? 0 : this.getOrderIscheckout()
                        .hashCode());
        return result;
    }

}